package com.question_barrier.repository;


import org.springframework.data.jpa.repository.JpaRepository;
import com.question_barrier.entity.Barrier;

import java.util.List;

public interface BarrierRepository extends JpaRepository<Barrier,Long> {
    List<Barrier> findByGradeAndSubject(String grade, String subject);

    Barrier findByGradeAndSubjectAndDegree(String grade,String subject,long degree);

    boolean  existsByGradeAndSubject(String grade, String subject);

    boolean existsByGradeAndSubjectAndDegree(String grade,String subject,long degree);


}
